<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:U('Sysbannerkind/index')}">轮播图分类列表</a></li>
			<li class="active"><a href="{:U('Sysbannerkind/add')}">添加分类</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form"action="{:U('Sysbannerkind/add_post')}">
			<fieldset>
				<div class="control-group">
					<label class="control-label"><b style="color:red;">* </b> 分类ID</label>
					<div class="controls">
						<input type="text" name="kind_id">
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><b style="color:red;">* </b> 分类名称</label>
					<div class="controls">
						<input type="text" name="kind_name">
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><b style="color:red;">* </b> 城市</label>
					<div class="controls">
						<select name="city_id" id="city_id" onchange="cityname()">
							<option value="">请选择</option>
							<foreach name="city" item="vo">
								<option value="{$vo.city_id}">{$vo.city_name}</option>
							</foreach>
							<input type="hidden" id="city_name" name="city_name" value="">
						</select>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">分类链接</label>
					<div class="controls">
						<input type="text" name="kind_link">
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"> 备注说明</label>
					<div class="controls">
						<textarea name="remark" rows="2" cols="20" id="content" class="inputtext" style="height: 100px; width: 500px;"></textarea>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:L('STATUS')}</label>
					<div class="controls">
						<label class="radio inline" for="active_true"><input type="radio" name="use_flg" value="1" checked id="active_true" />{:L('ENABLED')}</label>
						<label class="radio inline" for="active_false"><input type="radio" name="use_flg" value="0" id="active_false">{:L('DISABLED')}</label>
					</div>
				</div>
			</fieldset>
			<div class="form-actions">
				<button type="submit" class="btn btn-primary js-ajax-submit">{:L('ADD')}</button>
				<!--js-ajax-submit -->
				<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
			</div>
		</form>
	</div>
	<script>
        function cityname(){
            var name = $("#city_id").find("option:selected").text();
            $("#city_name").val(name);
        }
	</script>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>